﻿@{
    ViewBag.Title = "上传设置";
    Layout = "~/Views/Shared/_JuiLayout.cshtml";
}
@section header {
    <link href="/content/jui-normal.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () { loadList(); });
        function loadList() {
            $('#listDt').load('/File/List?valid=' + $('#states').val() + '&_d=' + Math.random(), function () { initUI($('#listDt')); });
        }
        function navTabAjaxDone(json) {
            if (json.statusCode == 1) {
                if (($.pdialog.getCurrent() != null) && (!$.pdialog.getCurrent().is(":hidden"))) {
                    $.pdialog.closeCurrent();
                }
                loadList();
            }
            DWZ.ajaxDone(json);
        }
    </script>
}
<div id="layout" class="noNavTab">
    <div id="navTab">
        <h2 class="contentTitle">文件上传参数设置</h2>
        <div class="pageHeader">
            <div class="searchBar">
                <table class="searchContent">
                    <tbody>
                        <tr>
                            <th>状态：</th>
                            <td>@Html.Partial("~/Views/BaseLibrary/ForStates.ascx")</td>
                            <td>
                                <div class="buttonActive">
                                    <div class="buttonContent">
                                        <button onclick="loadList()">查询</button>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="pageContent">
            <div class="panelBar">
                <ul class="toolBar">
                    <li><a class="add" href="/File/Add" target="dialog" mask="true" width="800" height="450"><span>添加</span></a></li>
                    <li><a class="edit" href="/File/Edit/{id}" target="curTab" rel="ids" width="800" height="450"><span>修改</span></a></li>
                    <li>@Html.Raw(JUIResult.ReturnOpen("Set_FileUpload", "/File/Config", "1"))</li>
                    <li>@Html.Raw(JUIResult.ReturnDel("Set_FileUpload", "/File/Config", "1"))</li>
			        <li class="line"></li>
	            </ul>
            </div>
            <div id="listDt" class="pageContent">
            </div>
        </div>
    </div>
</div>